home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 May / chip-cd_2000_05.zip / 05 / software / Nowe produkty / dmex / DMEXLIST.BAT next >
DOS Batch File  |  1999-04-06  |  669b  |  32 lines

  1. @echo off
  2.  
  3. echo Please Wait.   Bitte warten.   Attendez s.v.p. .....
  4.  
  5. tree /a %1 >%temp%\~dmexlist.txt
  6.  
  7. echo. >>%temp%\~dmexlist.txt
  8. echo. >>%temp%\~dmexlist.txt
  9. echo -------------------------------------------------------------------------------------- >>%temp%\~dmexlist.txt
  10. echo. >>%temp%\~dmexlist.txt
  11. echo. >>%temp%\~dmexlist.txt
  12.  
  13. dir %1 /o:gn /w /s >>%temp%\~dmexlist.txt
  14.  
  15. if %2x==/px goto printer
  16. goto viewer
  17.  
  18. :printer
  19. echo Print.
  20. rem start notepad.exe %2%temp%\~dmexlist.txt
  21. print %temp%\~dmexlist.txt 
  22. goto stop
  23.  
  24. :viewer
  25. echo View.
  26. rem start notepad.exe %temp%\~dmexlist.txt
  27. start %temp%\~dmexlist.txt
  28. goto stop
  29.  
  30. :stop
  31. echo End.
  32.